package com.nyist.controller;
/**
 * 超级管理员修改权限
 * @author 18077
 *
 */

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.nyist.service.RelationService;

@Controller
@RequestMapping("super")
public class SuperUpdateController {
	@Autowired
	@Qualifier("relationService")
	private RelationService relationService;
	/*将权限升高*/
	@RequestMapping("upper")
	public String updatepower(String manageid){
		relationService.UpdatePower(manageid, 2);
		
		return "redirect:manageList.do";
	}
	/*将权限降低*/
	@RequestMapping("lower")
	public String updatetolow(String manageid){
		relationService.UpdatePower(manageid, 3);
		return "redirect:manageList.do";
	}
}
